package api.cherry.controller;

import cherry.data.util.Result;
import cherry.data.view.request.CherryHomePageRequest;
import cherry.data.view.response.CherryHomePageResponse;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author 谢宇翔
 * @version 1.0.0
 * @ClassName CherryHomePageController.java
 * @Description 首页统计分页查询页面
 * @createTime 2022年02月02日 14:47:00
 */
@Api(tags = "首页统计")
@RestController
@RequestMapping("/api/v1/cherry/home")
public class CherryHomePageController {


    /**
     * @ClassName CherryHomePageController.java
     * @author 谢宇翔
     * @version 1.0.0
     * @Description 分页查询数据
     * @createTime 2022年02月06日 15:12:00
     */
    @ApiOperation("分页查询")
    @PostMapping("/findPage")
    public Result<PageInfo<CherryHomePageResponse>> findPage(long userId,@RequestBody CherryHomePageRequest request) {
//        return cherryHomePageService.findPage(request);
        return null;
    }


}
